## Copyright (C) 2020-2023 Aditya Shakya <adi1090x@gmail.com>
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3
##
## Original Picom's Config File

#################################
#           Corners             #
#################################

corner-radius = 6;
rounded-corners-exclude = [
	"window_type = 'desktop'",
];

round-borders-rule = [ 
	"9:class_g = 'polybar'" 
];


#################################
#             Shadows           #
#################################

shadow = true;

shadow-radius = 14;

shadow-opacity = 0.30;

shadow-offset-x = -12;

shadow-offset-y = -12;

shadow-exclude = [
    "_GTK_FRAME_EXTENTS@:c",
    "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];

#################################
#           Fading              #
#################################

fading = true;

fade-in-step = 0.03;

fade-out-step = 0.03;

fade-delta = 5

fade-exclude = [
  "class_g = 'slop'"   # maim
]

no-fading-openclose = false
no-fading-destroyed-argb = true


#################################
#   Transparency / Opacity      #
#################################

inactive-opacity = 1.0;

frame-opacity = 1.0;

inactive-opacity-override = false;

active-opacity = 1.0

focus-exclude = [
  "class_g = 'Cairo-clock'",
  "class_g = 'Bar'",
  "class_g = 'slop'",
  
];


opacity-rule = [
  "100:class_g    = 'code-oss'",
  "100:class_g    = 'TelegramDesktop'",
  "98:class_g    = 'firefox'",
  "90:class_g    = 'Alacritty'",
  "80:class_g    = 'Polybar'",
];


#################################
#     Background-Blurring       #
#################################

blur: {
	method = "dual_kawase";
	strength = 4;
};


#################################
#       General Settings        #
#################################

backend = "glx";
vsync = false;

mark-wmwin-focused = true;
mark-ovredir-focused = true;

detect-rounded-corners = true;
detect-client-opacity = true;
detect-transient = true;


glx-no-stencil = true;
use-damage = true;
log-level = "warn";

wintypes:
{
  tooltip = { fade=true; shadow=true; opacity=0.95; focus=true; full-shadow=false; };
  popup_menu = { opacity=1.0; }
  dropdown_menu = { opacity=1.0; }
  utility = { shadow=false; opacity=1.0; }
  dock = { shadow=true; clip-shadow-above=true; }
  dnd = { shadow=true; }
};
